import axiosSelfPro from "@/js/axiosSelfPro"

export default{
    async getList(props){
        return await axiosSelfPro.doGet("/user/getList",props);
    },
    async getPage(props){
        return await axiosSelfPro.doGet("/user/getPage",props);
    },
    async delOne(props){
        return await axiosSelfPro.doDel(`/user/delOne/${props}`);
    },
    async addOne(props){
        return await axiosSelfPro.doPost(`/user/addOne`,props);
    },
    async resetPassword(props){
        return await axiosSelfPro.doPut(`/user/resetPassword/${props}`);
    },
    async editOne(props){
        return await axiosSelfPro.doPut(`/user/edit/${props.id}`,props);
    },

}